import http from "../utils/request";
//#region 店长接口
//主页
const storeMain = (param) => {
  return http({ url: "/store/main", method: "POST", data: param });
};
//菜单
const storeMenu = (param) => {
  return http({ url: "/store/menu", method: "POST", data: param });
};
//到店会员
const storeReachList = (param) => {
  return http({ url: "/store/reachList", method: "POST", data: param });
};
//门店会员
const storeVipList = (param) => {
  return http({ url: "/store/vipList", method: "POST", data: param });
};
//教练列表
const storeCoachList = (param) => {
  return http({ url: "/store/coachList", method: "POST", data: param });
};
//分配教练
const storeAssign = (param) => {
  return http({ url: "/store/assign", method: "POST", data: param });
};
//学员课程
const storeCourseList = (param) => {
  return http({ url: "/store/courseList", method: "POST", data: param });
};
//上课记录
const storeClassList = (param) => {
  return http({ url: "/store/classList", method: "POST", data: param });
};
//排名
const storeRank = (param) => {
  return http({ url: "/store/rank", method: "POST", data: param });
};
//销售业绩
const storePerList = (param) => {
  return http({ url: "/store/perList", method: "POST", data: param });
};
//会员卡
const storeCardList = (param) => {
  return http({ url: "/store/cardList", method: "POST", data: param });
};
//兑换码
const storeRedeemList = (param) => {
  return http({ url: "/store/redeemList", method: "POST", data: param });
};
//会卡过期
const storeCardExpire = (param) => {
  return http({ url: "/store/cardExpire", method: "POST", data: param });
};
//门店教练
const storeCoachDetailsList = (param) => {
  return http({ url: "/store/coachDetailsList", method: "POST", data: param });
};
//门禁列表
const storeDeviceList = (param) => {
  return http({ url: "/store/deviceList", method: "POST", data: param });
};
//开门
const storeOpenDevice = (param) => {
  return http({ url: "/store/openDevice", method: "POST", data: param });
};
//扫码开门
const storeVgQrcode = (param) => {
  return http({ url: "/store/vgQrcode", method: "POST", data: param });
};
//结算单
const storeSett = (param) => {
  return http({ url: "/store/sett", method: "POST", data: param });
};
//会员列表
const storeMemberList = (param) => {
  return http({ url: "/store/memberList", method: "POST", data: param });
};
//门店二维码
const storeQrcode = (param) => {
  return http({ url: "/store/qrcode", method: "POST", data: param });
};
//会员卡停卡/启用
const storeCardOutage = (param) => {
  return http({ url: "/store/cardOutage", method: "POST", data: param });
};

//核销记录
const storeCancelList = (param) => {
  return http({ url: "/store/cancelList", method: "POST", data: param });
};
//审核通过
const storeAgree = (param) => {
  return http({ url: "/store/agree", method: "POST", data: param });
};

//会员详情
const storeVipInfo = (param) => {
  return http({ url: "/store/vipInfo", method: "POST", data: param });
};
//备注
const storeRemark = (param) => {
  return http({ url: "/store/remark", method: "POST", data: param });
};
//到店记录-会员个人
const storeVipReach = (param) => {
  return http({ url: "/store/vipReach", method: "POST", data: param });
};
//到店记录-会员个人
const storeVipClass = (param) => {
  return http({ url: "/store/vipClass", method: "POST", data: param });
};
//会员卡-会员个人
const storeVipCard = (param) => {
  return http({ url: "/store/vipCard", method: "POST", data: param });
};
//课程列表-会员个人
const storeVipCourse = (param) => {
  return http({ url: "/store/vipCourse", method: "POST", data: param });
};
//删除人脸
const storeDelFace = (param) => {
  return http({ url: "/store/delFace", method: "POST", data: param });
};

//订单列表
const storeOrderList = (param) => {
  return http({ url: "/store/orderList", method: "POST", data: param });
};
//订单二维码
const storeOrderPayCode = (param) => {
  return http({ url: "/store/orderPayCode", method: "POST", data: param });
};
//教练课程列表
const storeOrderCourseList = (param) => {
  return http({ url: "/store/orderCourseList", method: "POST", data: param });
};
//会员卡列表
const storeOrderCardList = (param) => {
  return http({ url: "/store/orderCardList", method: "POST", data: param });
};
//添加订单
const storeOrderAdd = (param) => {
  return http({ url: "/store/orderAdd", method: "POST", data: param });
};
//订单详情
const storeOrderInfo = (param) => {
  return http({ url: "/store/orderInfo", method: "POST", data: param });
};
//订单海报
const storeOrderPoster = (param) => {
  return http({ url: "/store/orderPoster", method: "POST", data: param });
};

//优惠券-列表
const storeCouponList = (param) => {
  return http({ url: "/store/couponList", method: "POST", data: param });
};
//优惠券-添加
const storeCouponAdd = (param) => {
  return http({ url: "/store/couponAdd", method: "POST", data: param });
};
//优惠券-领取码
const storeCouponQrcode = (param) => {
  return http({ url: "/store/couponQrcode", method: "POST", data: param });
};
//优惠券-赠送
const storeCouponGive = (param) => {
  return http({ url: "/store/couponGive", method: "POST", data: param });
};
//优惠券-领取记录
const storeCouponLog = (param) => {
  return http({ url: "/store/couponLog", method: "POST", data: param });
};
//优惠券-详情
const storeCouponInfo = (param) => {
  return http({ url: "/store/couponInfo", method: "POST", data: param });
};
//优惠券-添加数量
const storeCouponQuantity = (param) => {
  return http({ url: "/store/couponQuantity", method: "POST", data: param });
};

//数据统计-今日
const storeStatistical = (param) => {
  return http({ url: "/store/statistical", method: "POST", data: param });
};
//数据统计-本月
const storeMonthStatistical = (param) => {
  return http({ url: "/store/monthStatistical", method: "POST", data: param });
};
//数据统计-对比
const storeStatisticalCompare = (param) => {
  return http({
    url: "/store/statisticalCompare",
    method: "POST",
    data: param,
  });
};

//获取教练服务
const storeGetCoachService = (param) => {
  return http({ url: "/store/getCoachService", method: "POST", data: param });
};
//获取排课记录
const storeGetCourseSchedule = (param) => {
  return http({ url: "/store/getCourseSchedule", method: "POST", data: param });
};
//添加驻场
const storeAddSite = (param) => {
  return http({ url: "/store/addSite", method: "POST", data: param });
};
//添加驻场
const storeMainCoachList = (param) => {
  return http({ url: "/store/mainCoachList", method: "POST", data: param });
};

//收益-列表
const storeAttendList = (param) => {
  return http({ url: "/store/attendList", method: "POST", data: param });
};
//收益-详情
const storeAttendInfo = (param) => {
  return http({ url: "/store/attendInfo", method: "POST", data: param });
};
//月结-列表
const storeMonthlyList = (param) => {
  return http({ url: "/store/monthlyList", method: "POST", data: param });
};
//月结-详情
const storeMonthlyInfo = (param) => {
  return http({ url: "/store/monthlyInfo", method: "POST", data: param });
};

//拉新-列表
const storeCarryList = (param) => {
  return http({ url: "/store/carryList", method: "POST", data: param });
};

//省市区列表
const storeProvince = (param) => {
  return http({ url: "/store/province", method: "POST", data: param });
};
//门店列表
const storeShopList = (param) => {
  return http({ url: "/store/shopList", method: "POST", data: param });
};
//#endregion

//#region 通用接口
//时间类型
const assistTimeForm = (param) => {
  return http({ url: "/assist/timeForm", method: "POST", data: param });
};
//会员类型
const assistVipForm = (param) => {
  return http({ url: "/assist/vipForm", method: "POST", data: param });
};
//是否有课程
const assistVipCourse = (param) => {
  return http({ url: "/assist/vipCourse", method: "POST", data: param });
};
//课程-状态
const assistCourseStatus = (param) => {
  return http({ url: "/assist/courseStatus", method: "POST", data: param });
};
//上课行为
const assistClassAction = (param) => {
  return http({ url: "/assist/classAction", method: "POST", data: param });
};
//支付状态
const assistPayStatus = (param) => {
  return http({ url: "/assist/payStatus", method: "POST", data: param });
};
//来源
const assistSource = (param) => {
  return http({ url: "/assist/source", method: "POST", data: param });
};
//核销来源
const assistRedeemSource = (param) => {
  return http({ url: "/assist/redeemSource", method: "POST", data: param });
};
//会员卡类型
const assistCardForm = (param) => {
  return http({ url: "/assist/cardForm", method: "POST", data: param });
};
//会员卡状态
const assistCardStatus = (param) => {
  return http({ url: "/assist/cardStatus", method: "POST", data: param });
};
//会员卡状态
const assistDurationForm = (param) => {
  return http({ url: "/assist/durationForm", method: "POST", data: param });
};
//分配类型
const assistAssignForm = (param) => {
  return http({ url: "/assist/assignForm", method: "POST", data: param });
};
//指导类型
const assistGuideForm = (param) => {
  return http({ url: "/assist/guideForm", method: "POST", data: param });
};
//会员状态
const assistVipStatus = (param) => {
  return http({ url: "/assist/vipStatus", method: "POST", data: param });
};
//兑换码状态
const assistRedeemStatus = (param) => {
  return http({ url: "/assist/redeemStatus", method: "POST", data: param });
};
//多级业务类型
const assistFinanceSecond = (param) => {
  return http({ url: "/assist/financeSecond", method: "POST", data: param });
};
//同步金额状态
const assistSyncForm = (param) => {
  return http({ url: "/assist/syncForm", method: "POST", data: param });
};
//到店类型
const assistReachForm = (param) => {
  return http({ url: "/assist/reachForm", method: "POST", data: param });
};
//核销-审核状态
const assistAuditStatus = (param) => {
  return http({ url: "/assist/auditStatus", method: "POST", data: param });
};
//状态-是否签到（教练排课）
const assistSignInStatus = (param) => {
  return http({ url: "/assist/signInStatus", method: "POST", data: param });
};
//状态-是否到场
const assistIsArrive = (param) => {
  return http({ url: "/assist/isArrive", method: "POST", data: param });
};
//添加驻场
const assistAddSite = (param) => {
  return http({ url: "/assist/addSite", method: "POST", data: param });
};
//添加驻场
const assistCarryDurationForm = (param) => {
  return http({
    url: "/assist/carryDurationForm",
    method: "POST",
    data: param,
  });
};

//授权登录
const assistLogin = (param) => {
  return http({ url: "/assist/login", method: "POST", data: param });
};
//协议列表
const assistAgreement = (param) => {
  return http({ url: "/assist/agreement", method: "POST", data: param });
};
//协议
const assistPolicy = (param) => {
  return http({ url: "/assist/policy", method: "POST", data: param });
};
//获取额外身份
const assistIdentity = (param) => {
  return http({ url: "/assist/identity", method: "POST", data: param });
};
//#endregion

export default {
  //#region 店长接口
  apiStoreMain: storeMain,
  apiStoreMenu: storeMenu,
  apiStoreReachList: storeReachList,
  apiStoreCoachList: storeCoachList,
  apiStoreVipList: storeVipList,
  apiStoreAssign: storeAssign,
  apiStoreCourseList: storeCourseList,
  apiStoreClassList: storeClassList,
  apiStoreRank: storeRank,
  apiStorePerList: storePerList,
  apiStoreCardList: storeCardList,
  apiStoreRedeemList: storeRedeemList,
  apiStoreCardExpire: storeCardExpire,
  apiStoreCoachDetailsList: storeCoachDetailsList,
  apiStoreDeviceList: storeDeviceList,
  apiStoreOpenDevice: storeOpenDevice,
  apiStoreVgQrcode: storeVgQrcode,
  apiStoreSett: storeSett,
  apiStoreMemberList: storeMemberList,
  apiStoreQrcode: storeQrcode,
  apiStoreCardOutage: storeCardOutage,
  apiStoreCarryList: storeCarryList,

  apiStoreCancelList: storeCancelList,
  apiStoreAgree: storeAgree,

  apiStoreVipInfo: storeVipInfo,
  apiStoreRemark: storeRemark,
  apiStoreVipReach: storeVipReach,
  apiStoreVipClass: storeVipClass,
  apiStoreVipCard: storeVipCard,
  apiStoreVipCourse: storeVipCourse,
  apiStoreDelFace: storeDelFace,

  apiStoreOrderList: storeOrderList,
  apiStoreOrderPayCode: storeOrderPayCode,
  apiStoreOrderCourseList: storeOrderCourseList,
  apiStoreOrderCardList: storeOrderCardList,
  apiStoreOrderAdd: storeOrderAdd,
  apiStoreOrderInfo: storeOrderInfo,
  apiStoreOrderPoster: storeOrderPoster,

  apiStoreCouponList: storeCouponList,
  apiStoreCouponAdd: storeCouponAdd,
  apiStoreCouponQrcode: storeCouponQrcode,
  apiStoreCouponGive: storeCouponGive,
  apiStoreCouponLog: storeCouponLog,
  apiStoreCouponInfo: storeCouponInfo,
  apiStoreCouponQuantity: storeCouponQuantity,

  apiStoreStatistical: storeStatistical,
  apiStoreMonthStatistical: storeMonthStatistical,
  apiStoreStatisticalCompare: storeStatisticalCompare,

  apiStoreGetCoachService: storeGetCoachService,
  apiStoreGetCourseSchedule: storeGetCourseSchedule,
  apiStoreAddSite: storeAddSite,
  apiStoreMainCoachList: storeMainCoachList,

  apiStoreAttendList: storeAttendList,
  apiStoreAttendInfo: storeAttendInfo,
  apiStoreMonthlyList: storeMonthlyList,
  apiStoreMonthlyInfo: storeMonthlyInfo,

  apiStoreProvince: storeProvince,
  apiStoreShopList: storeShopList,
  //#endregion

  //#region 通用接口
  apiAssistTimeForm: assistTimeForm,
  apiAssistVipForm: assistVipForm,
  apiAssistVipCourse: assistVipCourse,
  apiAssistCourseStatus: assistCourseStatus,
  apiAssistClassAction: assistClassAction,
  apiAssistPayStatus: assistPayStatus,
  apiAssistSource: assistSource,
  apiAssistRedeemSource: assistRedeemSource,
  apiAssistCardForm: assistCardForm,
  apiAssistCardStatus: assistCardStatus,
  apiAssistDurationForm: assistDurationForm,
  apiAssistAssignForm: assistAssignForm,
  apiAssistGuideForm: assistGuideForm,
  apiAssistVipStatus: assistVipStatus,
  apiAssistRedeemStatus: assistRedeemStatus,
  apiAssistFinanceSecond: assistFinanceSecond,
  apiAssistSyncForm: assistSyncForm,
  apiAssistReachForm: assistReachForm,
  apiAssistAuditStatus: assistAuditStatus,
  apiAssistSignInStatus: assistSignInStatus,
  apiAssistIsArrive: assistIsArrive,
  apiAssistAddSite: assistAddSite,
  apiAssistCarryDurationForm: assistCarryDurationForm,

  apiAssistLogin: assistLogin,
  apiAssistAgreement: assistAgreement,
  apiAssistPolicy: assistPolicy,
  apiAssistIdentity: assistIdentity,
  //#endregion
};
